

GunVoiceContrller = {
	
		playerGunSound: '',
		enemyGunSound: '',
		payerShooted: '',
		play : function(){
//			if(this.playerGunSound == ''){
			if(CameraController.isSnipe == true){
				this.playerGunSound = new Audio("sound/gun/GUN1.wav");
			}else{
				this.playerGunSound = new Audio("sound/gun/AK47A.wav"); // buffers automatically when created
			}
//			this.playerGunSound.stop();
			this.playerGunSound.play();
		},
		enemyFire: function(i){
			if(Enemy.enemyList[i].gunvoice == ''){
				var voiceSrc = "";
				if(i==0){
					voiceSrc = "sound/gun/GRAY1WEA.wav";
				}else if( i==1){
					voiceSrc = "sound/gun/M14A.wav";
				}else if( i==2){
					voiceSrc = "sound/gun/MCHNGUNS.wav";
				}else if( i==3){
					voiceSrc = "sound/gun/MORTDEA.wav";
				}else {
					voiceSrc = "sound/gun/M1B.wav";
				}
				Enemy.enemyList[i].gunvoice = new Audio(voiceSrc);
			}
//			console.log("i:~~~~~~~" + i);
			Enemy.enemyList[i].gunvoice.play();
		},
		playerShooted: function(){
			this.payerShooted = new Audio("sound/gun/MASKET1.wav");
			this.payerShooted.play();
		},

}